//
//  CardCollectionViewCell.m
//  objective_c_language
//
//  Created by 王玉龙 on 2018/6/5.
//  Copyright © 2018年 longlong. All rights reserved.
//

#import "CardCollectionViewCell.h"

@implementation CardCollectionViewCell


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    
    if (self)
    {
        [self.contentView addSubview:self.imageView];
        self.imageView.frame = self.bounds;
    }
    return self;
}






- (UIImageView *)imageView
{
    if (_imageView == nil)
    {
        UIImageView *imageView = [[UIImageView alloc] init];
        imageView.contentMode = UIViewContentModeScaleAspectFill;
        _imageView = imageView;
    }
    return _imageView;
}


@end
